home *** CD-ROM | disk | FTP | other *** search
-
-
-
- pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((3333PPPP)))) pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((3333PPPP))))
-
-
-
- NNNNAAAAMMMMEEEE
- pthread_create - create and start a thread
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
-
- iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((pppptttthhhhrrrreeeeaaaadddd____tttt ****tttthhhhrrrreeeeaaaadddd,,,, pppptttthhhhrrrreeeeaaaadddd____aaaattttttttrrrr____tttt ****aaaattttttttrrrr,,,,
- vvvvooooiiiidddd ****((((****ssssttttaaaarrrrtttt))))((((vvvvooooiiiidddd ****)))),,,, vvvvooooiiiidddd ****aaaarrrrgggg))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _p_t_h_r_e_a_d__c_r_e_a_t_e() function creates a thread with the attributes
- specified by _a_t_t_r, starting execution at the function named _s_t_a_r_t with
- the argument value _a_r_g. A null value of _a_t_t_r causes the thread to be
- created with default attributes. The thread identity is saved in the
- location pointed to by the _t_h_r_e_a_d argument.
-
- A new thread inherits its per-thread signal mask from its creator. No
- signals are pending on the thread when it starts. The thread runs until
- it returns from its _s_t_a_r_t function, calls _p_t_h_r_e_a_d__e_x_i_t(), or acts on a
- cancellation request. The exception is the initial thread which will
- cause the process to exit if it returns from _m_a_i_n(). When the process
- terminates so do all its threads.
-
- For an overview of POSIX threads see _p_t_h_r_e_a_d_s(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- On success, _p_t_h_r_e_a_d__c_r_e_a_t_e() returns zero; otherwise an error number is
- returned:
-
- [[[[EEEEAAAAGGGGAAAAIIIINNNN]]]] The maximum number of threads has been created [see NNNNOOOOTTTTEEEESSSS,
- and _s_e_t_r_l_i_m_i_t()] or there is insufficient memory to create
- the thread.
-
- [[[[EEEEPPPPEEEERRRRMMMM]]]] The calling process lacks sufficient privilege to create a
- thread with these attributes [see
- _p_t_h_r_e_a_d__a_t_t_r__s_e_t_s_c_o_p_e()].
-
- [[[[EEEEPPPPEEEERRRRMMMM]]]] A call to _p_t_h_r_e_a_d__c_r_e_a_t_e() was attempted from a sproc
- program (see CCCCAAAAVVVVEEEEAAAATTTTSSSS, section below).
-
- [[[[EEEEPPPPEEEERRRRMMMM]]]] A call to _p_t_h_r_e_a_d__c_r_e_a_t_e() was attempted with a priority
- that is outside of the valid range (see CCCCAAAAVVVVEEEEAAAATTTTSSSS, section
- below).
-
- NNNNOOOOTTTTEEEESSSS
- A thread application can find the thread limit using the _s_y_s_c_o_n_f()
- function with the ____SSSSCCCC____TTTTHHHHRRRREEEEAAAADDDD____TTTTHHHHRRRREEEEAAAADDDDSSSS____MMMMAAAAXXXX option.
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- The POSIX thread model is incompatible with the _ssss_pppp_rrrr_oooo_cccc(2) model of
- threading. Attempts to create a pthread process from a sproc program
- will be rejected.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((3333PPPP)))) pppptttthhhhrrrreeeeaaaadddd____ccccrrrreeeeaaaatttteeee((((3333PPPP))))
-
-
-
- Attempts to create a pthread process at a priority outside of the valid
- range will be rejected. Specifically, _w_e_i_g_h_t_l_e_s_s is not a valid pthread
- priority.
-
- For more information about these and other limitations with the POSIX
- thread model see _pppp_tttt_hhhh_rrrr_eeee_aaaa_dddd_ssss(5).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- pthread_attr_init(3P), pthread_attr_setscope(3P), pthread_exit(3P),
- pthreads(5), setrlimit(2), sysconf(3C).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-